#!/bin/bash

# Describe:     install oh-my-zsh
# Create Date： 2021-10-28
# Create Time:  19:09
# Update Date:  2023-11-08
# Update Time:  17:15
# Author:       MiaoCunFa
# Version:      v0.0.3
#
# Usage:        /bin/zsh -c "$(curl -fsSL https://gitee.com/miaocunfa/mac/raw/master/mac_zsh.sh)"
#

#===================================================================

download=$HOME/Downloads

if [ ! -f "$download/ohmyzsh-miao.tar" ]
then
    echo
    echo -e "\t开始下载: ohmyzsh主题"
    curl -o $download/ohmyzsh-miao.tar -O https://gjr-soft-repo.oss-cn-qingdao.aliyuncs.com/mac-intel/ohmyzsh-miao.tar
fi

echo
echo "初始化: ohmyzsh"

cd $download
tar -zxf ohmyzsh-miao.tar -C $HOME

cd $HOME
source .zshrc
